<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ include file="console_element/top.jsp" %>
<div id="main">
    <%@ include file="console_element/left.jsp" %>
    <div id="opt_area">
        <ul class="classlist">
            <c:forEach items="${topics}" var="topic">
                <li> &#160;&#160;&#160;&#160; ${topic.tname} &#160;&#160;&#160;&#160;
                    <c:if test="${!empty sessionScope.user && sessionScope.user.urole==2}">
                        <a href='<%=basePath%>topic/toModify?tid=${topic.tid}&tname=${topic.tname}'>修改</a>
                        &#160;&#160;&#160;&#160;
                        <a href='<%=basePath%>topic/delete?tid=${topic.tid}'>删除</a>
                    </c:if>
                </li>
            </c:forEach>
        </ul>
    </div>
</div>
<%@ include file="console_element/bottom.html" %>

